package Test;

public class avenue {
    public static void main(String[] args) {
        int[][] list = {{59, 78, 89, 78, 67}, {67, 80, 90, 85, 79}, {76, 87, 98, 99, 100}};
        for (int i = 0; i < list.length; i++) {
            System.out.println(average(list[i]));
        }

    }

    private static double average(int arg[]) {
        int sum = 0;

        for (int s : arg) {
            sum += s;

        }
        System.out.println(sum);
        return (double) sum / (double) arg.length;
    }


}
